﻿using System;
using System.Collections.Generic;
using Autodesk.Revit.DB;
using YJKGeometryFuncs;

namespace YJKCopyModel.CommonTrans
{
	public class ParallelArcComparer : IComparer<KeyValuePair<double, Arc>>
	{
		public int Compare(KeyValuePair<double, Arc> lhv, KeyValuePair<double, Arc> rhv)
		{
			double key = lhv.Key;
			double key2 = rhv.Key;
			bool flag = Geometry.IsEqual(key, key2);
			int result;
			if (flag)
			{
				result = 0;
			}
			else
			{
				bool flag2 = Geometry.LessThan(key, key2);
				if (flag2)
				{
					result = -1;
				}
				else
				{
					result = 1;
				}
			}
			return result;
		}
	}
}
